package com.example.yjj_java_web_homework3.service;

import com.example.yjj_java_web_homework3.entity.Device;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author Li Chun Hei
 * @date 4/11/2025
 * @description
 */
public interface DeviceService {
    Device createDevice(Device device);
    Device updateDevice(Long id, Device device);
    void deleteDevice(Long id);
    Device getDeviceById(Long id);
    List<Device> getAllDevices();
    Page<Device> getDevicesByPage(Pageable pageable);
    List<Device> getDevicesByStatus(Device.DeviceStatus status);
    Device updateDeviceStatus(Long id, Device.DeviceStatus status);
}
